<!doctype html>

<html>

<head>

<meta charset="UTF-8" />

<title>心愿团</title>  

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />

<meta name="apple-mobile-web-app-capable" content="yes">

<meta name="apple-mobile-web-app-status-bar-style" content="black">

<meta name="format-detection" content="telephone=no">

<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />

<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/cart.css" />

</head>

<body>
<div class="group02" style="padding-bottom:70px;">

	<div class="prointro02">

        <div class="top02" style="background:url(__PUBLIC__/Wx/img/bg1.jpg) no-repeat center center; background-size:100% 100%;">
            <div class="logo02">
                <span><img src="__PUBLIC__/Wx/img/logo04.png"/></span><b>社区对接偏远山村，吃好的又能帮他们</b>
            </div>
            <div class="num">
                <h2><span>帮扶乡村心愿团</span></h2>
                <h3>已有<b>{$number+2150}</b>人加入</h3>
            </div>
            <div class="qx"><h1>心愿团可尊享<b>4</b>大专属特权</h1></div>
        </div>

        <div class="inner">
            <div class="privilege">
                <ul>
                	<li>
                    	<h2><img src="__PUBLIC__/Wx/img/icon-money.png"/><span>现金积分</span></h2>
                        <p>组团成功立送<br>9元余额+18积分</p>
                    </li>
                	<li>
                    	<h2><img src="__PUBLIC__/Wx/img/icon-dh.png"/><span>试吃兑换</span></h2>
                        <p>赠送积分可用于<br>申请试吃+积分兑换</p>
                    </li>
                	<li>
                    	<h2><img src="__PUBLIC__/Wx/img/icon-yw.png"/><span>帮扶山村</span></h2>
                        <p>长期稳定便宜<br>吃到原生态食材</p>
                    </li>
                	<li>
                    	<h2><img src="__PUBLIC__/Wx/img/icon-ly.png"/><span>免费旅游</span></h2>
                        <p>参选为社区扶贫大使后<br>赠恩施3天乡村免费游</p>
                    </li>
                    <div class="clear"></div>
                </ul>

            </div>

        </div>

    </div>

    <div class="step01">

    	<div class="tit"><span>心愿团规则说明</span></div>

        <div class="word03">

        	<p>1、支付<b>9</b>元，拼团成功，平台再赠送9元，账户余额变18元，可用于直接购买偏远山区农户产品，或用于抵扣部分货款

(金额超出18元，只需付超出部分);</p>

			<p>2、拼团成功另外送18积分，用于申请试吃产品,试吃产品后发布试吃评价并集赞，同一社区积赞数最多的用户

成为我们的社区扶贫大使，获免费3天恩施游，

本次活动共产生50个社区扶贫大使;</p>

			<p>3、拼团不成功，9元原路退还到微信账号。</p>

        </div>

        <h3>温馨提示：免费旅游和申请试吃仅限武汉地区</h3>

   	</div>

    <div class="step02">

    	<div class="tit"><span>为乡村拼团</span>美味延续村庄</div>

        <div class="link">

            <ul>

            	<li>

                	<div class="pic"><img src="__PUBLIC__/Wx/images/pic21.jpg"/></div>

                    <p>小矛坡营村，湖北省苗族语言唯一“活着”的村寨。土鸡蛋就真是土鸡蛋。石玲，为了照顾年迈的父母，从城市回到古老的村寨。他相信：坚守淳朴、信用，就一定会让古老的村寨延续！</p>

                </li>	

            	<li>

                	<div class="pic"><img src="__PUBLIC__/Wx/images/pic22.png"/></div>

                    <p>大溪村，离恩施城区近300公里，300多户人家，平常村里大多都是老人和孩子。如果村里的土豆、野生蜂蜜、老品种胡萝卜等有稳定的销售，年轻人就可以不用外出打工了...</p>

                </li>	

            </ul>

            <if condition="$order_info['pay_status'] eq 1">

                <span onClick="window.location='__MODULE__/List/'">

                    查看更多>>

                </span>

                <else />

                <span class="showhit">

                    查看更多>>

                </span>

            </if>

    	</div>

   	</div>

    <div class="step03">

   		<div class="tit"><span>试吃试用</span>申请试吃，参选社区扶贫大使</div>

        <div class="link">

            <ul>

                <volist name="foretaste" id="vo">

                    <if condition="$order_info['pay_status'] eq 1">

                        <li onClick="window.location='__MODULE__/Foretaste/pro/gid/{$vo.id}'">

                            <else />

                        <li class="showhit">

                    </if>

                        <div class="pic"><img src="<?=isMorePic($vo['h_imgs'])?>"/></div>

                        <h3>{$vo.title}</h3>

                        <!--<h4>口感爽滑 营养丰富</h4>-->

                        <h4>{$vo.market}元/{$vo.u_num}<?=getunit($vo['unit'])?>精品</h4>

                        <p>{$vo.price}积分申请试吃</p>

                    </li>

                </volist>

                <div class="clear"></div>	

            </ul>

            <if condition="$order_info['pay_status'] eq 1">

                <span onClick="window.location='__MODULE__/Foretaste/'">

                    查看更多>>

                </span>

            <else />

                <span class="showhit">

                    查看更多>>

                </span>

            </if>

    	</div>

    </div>

    <div class="step04">

   		<div class="tit"><span>乡村旅游</span>社区扶贫大使，恩施乡村3日免费游</div>

        <div class="link">

            <ul>

            	<li><img src="__PUBLIC__/Wx/images/0013x.png"/></li>	

            	<li><img src="__PUBLIC__/Wx/images/0023x.png"/></li>	

            	<li><img src="__PUBLIC__/Wx/images/0033x.png"/></li>	

            	<li><img src="__PUBLIC__/Wx/images/0043x.png"/></li>	

            	<li><img src="__PUBLIC__/Wx/images/0053x.png"/></li>	

            	<li><img src="__PUBLIC__/Wx/images/0063x.png"/></li>	

            	<li><img src="__PUBLIC__/Wx/images/0073x.png"/></li>	

            	<li><img src="__PUBLIC__/Wx/images/0083x.png"/></li>	

            	<li><img src="__PUBLIC__/Wx/images/0093x.png"/></li>	

                <div class="clear"></div>	

            </ul>

            <if condition="$order_info['pay_status'] eq 1">

                <span onClick="window.location='__MODULE__/Foretaste/helppoor/'">

                    查看更多>>

                </span>

                <else />

                <span class="showhit">

                    查看更多>>

                </span>

            </if>

    	</div>

    </div>

    <div class="bot">
        <img src="__PUBLIC__/Wx/images/pic32.jpg"/>
        <img src="__PUBLIC__/Wx/images/pic35.png"/>
    </div>



    <if condition="($user_name neq '') AND ($share_group neq '')">

        <!--分享给别人打开状态-->

        <div class="people">

            <!--已开团-->

            <h2><span>{$user_name}</span>正在拼心愿团，还差<span><?=5-$share_wish['person']?></span>人即可成团</h2>

            <div class="list list03">
                <ul>
                    <volist name="share_group" id="vo">
                        <li>
                            <div class="pic"><img src="{$vo.avatar}"/></div><h3>{$vo.nickname}</h3><b>{$vo.hometown}</b>
                        </li>
                    </volist>
                    <div class="clear"></div>
                </ul>

            </div>

        </div>

    </if>



    <if condition="$order_info['pay_status'] eq 1">

        <!--拼团数据-->

        <div id="Number">

            <div class="number02">

                <h3>全国共有<span>{$number+2150}</span>人已参与拼团</h3>

                <!--<h4><b>拼团快报</b><span>武汉</span><i>3</i>个社区已参与拼团</h4>-->

                <div class="numnews">
                    <b>拼团快报</b>
                    <div id="marquee">
                        <ul style="height: 1200px;">

                            <volist name="comm_count" id="vo">

                            <li><span>{$key}</span><i>{$vo}</i>个社区已参与了心愿团</li>

                            </volist>

                        </ul>

                    </div>

                </div>

            </div>



            <div class="people">

                <if condition="($wish_info['status'] eq 0) AND ($order_info['status'] eq 0)">

                    <!--已开团-->

                    <h2><span>{$wish_info.person}</span>人正在拼团，还差<span><?=5-$wish_info['person']?></span>人成团</h2>

                    <else />

                    <!--已成团-->

                    <h2><span>恭喜您，您的心愿团已拼团成功！</span></h2>

                </if>

                <div class="list">

                    <ul>

                        <volist name="member_list" id="vo">
                        <li>
                            <div class="pic"><img src="{$vo.avatar}"/></div>
                            <h3><?=msubstr($vo['nickname'],9)?></h3>
                            <b>{$vo.hometown}</b>
                        </li>

                        </volist>

                        <div class="clear"></div>

                    </ul>

                </div>

            </div>

            <if condition="$hometown_count neq ''">

            <div class="number03">

                <div class="top"><b>{$comm_title}味士团</b>有<span>{$comm_number}</span>人已参与拼团</div>

                <div class="list04">

                    <ul>

                        <foreach name="hometown_count" item="vo">

                        <li><span>{$key}</span><b>{$vo}</b>人</li>

                        </foreach>

                        <div class="clear"></div>

                    </ul>

                </div>

            </div>

            </if>

        </div>

    </if>



    <if condition="($pay eq 1) AND ($order_info neq '')">

    <!--填写地址-->

    <div class="hint03" style="display: block">

    	<div class="shadow">

            <div class="close"></div>

            <div class="succeed">

            	<h2>温馨提示</h2>

                <p style="padding-top:20px;">请填写试吃收货地址</p>

                <p style="padding:0; height:40px; position:absolute; width:100%; bottom:0;"><input type="button" value="去填写" class="right"  onclick="window.location.href='__MODULE__/Authentication/index/do_what/binding/pay/1'" style="width:100%"></p>

            </div>

        </div>

    </div>

    </if>

    <!--引用悬浮公共导航文件-->

    <include file="Public:nav" />



    <empty name="order_info">

        <!--未开团状态-->

        <!--<div class="time"><span>还差<b><?=5-$wish_info['person']?></b>人成团</span>-->

        <!--</div>-->

        <div class="button">

            <span><em>￥<b>9.00</b></em><i>支付9元，9元变18元，获18积分</i></span>

            <input type="button" value="加入心愿团" onclick="window.location.href='/Wx/WishGroup/confirm/'" />

        </div>
        <else />

        <!--已开团状态-->
        <if condition="($wish_info['status'] eq 0) AND ($order_info['status'] eq 0)">
            <div class="time" id="time">
                <i>限时心愿团</i>
                <span>距离结束仅剩</span>
                <div class="time-item">
                    <!--<span id="day_show">0</span>天-->
                    <strong id="hour_show"><s id="h"></s>0</strong>时
                    <strong id="minute_show"><s></s>00</strong>分
                    <strong id="second_show"><s></s>00</strong>秒
                </div>
            </div>
            <input name="endtime" value="{$order_info.endtime}" type="hidden">
            <if condition="$order_info['pay_status'] eq 1">
                <div class="button02"><input type="button" value="人越多就越容易实现，马上邀请好友"></div>
                <div class="page02">

                    <div class="guide">

                        <div class="pic"><img src="__PUBLIC__/Wx/img/share.png"/></div>

                        <p>点击右上角，分享给朋友</p>

                        <h5>邀请朋友一起来拼团！！！</h5>

                        <h6><input type="button" value="我知道了" class="know"/></h6>

                    </div>

                </div>

                <else />

                <div class="button">

                    <input type="button" style="width: 100%" value="您已参团，还未付款" onclick="window.location.href='/Api/Weixinpay/wishpay?order_id={$order_info.id}'" />

                </div>

            </if>

            <!--end if"-->



            <else />

            <div class="button">

                <input type="button" value="已成团" style="width: 100%"/>

            </div>

        </if>

        <!--end if-->



    </empty>

    <!--end empty-->





    <!--未参与心愿卡点击出现提示-->

    <div class="hint">

    	<div class="shadow">

            <div class="close"></div>

            <div class="succeed">

            	<h2>温馨提示</h2>

                <p style="text-align:center; padding-top:30px;">请先参与帮扶农村心愿团</p>

            </div>

        </div>

    </div>

    <!--&lt;!&ndash;关注提示&ndash;&gt;-->

    <!--<div class="page">-->

        <!--<div class="close"></div>-->

    	<!--<div class="inner">-->

            <!--<div class="pic"><img src="__PUBLIC__/Wx/images/pic14.jpg"/><p>长按图片【识别二维码】关注公众号</p></div>-->

            <!--<div class="step">-->

            	<!--<h2>无法识别二维码</h2>-->

                <!--<p>1.打开微信，点击“添加朋友”</p>-->

                <!--<p>2.点击“公众号”</p>-->

                <!--<p>3.搜索公众号：“乡土味士”</p>-->

                <!--<p>4.点击：关注“，完成</p>-->

                <!--<h5>精准扶贫 从我做起</h5>-->

            <!--</div>-->

        <!--</div>-->

    <!--</div>-->

</div>

	<script type="text/javascript" src="__PUBLIC__/Wx/js/jquery-1.9.1.js"></script>

	<script type="text/javascript">

		$('.button02 input').click(function(){ 

			$('.page02').css('display','block') 

		});

		$('.know').click(function(){ 

			$('.page02').css('display','none') 

		});

		$('.showhit').click(function(){

			$('.hint').css('display','block') 

		});

		// $('.showhit').click(function(){

		// 	$('.hint').css('display','block')

		// });

		$('.close').click(function(){ 

			$('.hint').css('display','none') 

		});

    	$(".click span").click(function(){

        	if($(this).text() ==="导航"){

            	$(this).text("收起");

				$('.link02').css('display','block')

        	}else{

            	$(this).text("导航");

				$('.link02').css('display','none')

        	}

    	});

		$('.hint03 .close').click(function(){ 

			$('.hint03').css('display','none') 

		});

		$('.page .close').click(function(){ 

			$('.page').css('display','none') 

		});

	</script>

    <script type="text/javascript">

        var endtime =  $("input[name='endtime']").val();

    var intDiff = parseInt(endtime);//倒计时总秒数量

    

    function timer(intDiff){

        window.setInterval(function(){

        var day=0,

            hour=00,

            minute=0,

            second=0;//时间默认值		

        if(intDiff > 0){

            day = Math.floor(intDiff / (60 * 60 * 24));

            hour = Math.floor(intDiff / (60 * 60)) - (day * 24);

            minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);

            second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);

        }

        if (minute <= 9) minute = '0' + minute;

        if (second <= 9) second = '0' + second;

		$('#day_show').html(day+"天");

        $('#hour_show').html('<s id="h"></s>'+hour+'');

        $('#minute_show').html('<s></s>'+minute+'');

        $('#second_show').html('<s></s>'+second+'');

        intDiff--;

        }, 1000);

    } 

    $(function(){

        timer(intDiff);

    });	

    </script>

    <script type="text/javascript" src="__PUBLIC__/Wx/js/jquery-1.3.1.min.js"></script>

    <script type="text/javascript" src="__PUBLIC__/Wx/js/kxbdSuperMarquee.js"></script>

    <script type="text/javascript">

        $(function(){

            $('#marquee').kxbdSuperMarquee({

                isEqual:false,

                distance:40,

                time:2,

                //btnGo:{up:'#goU',down:'#goD'},

                direction:'up'

            });

        });

    </script>



</body>



<include file="Public/wxshare" title="加入心愿团：0元试吃，当选社区扶贫大使免费恩施3日游！" desc="心愿团-社区对接偏远山村，让您长期稳定吃到原生态美味食材，吃好的又能帮他们，一起加入吧！" imgurl="http://imgs.xiangtws.com/Public/Uploads/5b1127d86f518.jpg" url="http://www.xiangtws.com/__MODULE__/WishGroup/Index/share_id/{$share_id}"/>



</html>